<% @page_title = "Invite new members to: #{@discipline.name}" %>

<div class="form_container column span-16 prepend-6 last">

<h3><%= @page_title %></h3>

<% form_for(:invite, :url => send_invite_discipline_path(@discipline)) do |f| %>
  <dl class="inline">
    <dt><%= label_for :disciplines, :email_addresses %></dt>
    <dd>
      <%= f.text_area :email_addresses, :rows => 3 %>
      <br />
      <em class="constraint">separate multiple email addresses with commas</em>
    </dd>
    <dt><%= label_for :disciplines, :message %></dt>
    <dd>
      <%= f.text_area :message, :rows => 3 %>
      <br />
      <em class="constraint">Enter a message that will be sent with your invitation</em>
    </dd>
  </dl>
  <hr />

  <h6>What your email will look like</h6>
  <p>Greetings!</p>

  <p><%= current_user.name %> has invited you to join the <%=h @discipline.name %> discipline on Pronetos, the social network for scholars.</p>

  <p>% PERSONAL MESSAGE %</p>
  <p>By joining this group you can:</p>

  <p>*Stay up to date in your field by joining conversations happening among your peers in the Community forum.</p>

  <p>*Better circulate your ideas by posting articles for peer review, or comment</p>

  <p>*Be notified when your colleagues post new papers or messages</p>

  <p>*Invite other scholars in your field to network and collaborate with the group</p>

  <p>Click here to join this discipline</p>

  <p>http://pronetos.com/join</p>
  <hr />
  <p><%= submit_tag "Send Invitations" %></p>
<% end %>

</div>
